#!/bin/bash -v

#commitId=$(git rev-parse --short HEAD)
#tagName=$(date '+%y%m%d-%H%M')-${commitId}

tagName=$(date '+%y%m%d-%H%M')
tarName=ftp-client-${tagName}.tar

echo '***************************************'
echo 'tarName:'${tarName}
echo '***************************************'

imageName=reg.supremind.info/product/app/project/2022/pj2021030028/data-push/ftp-client:${tagName}

mvn clean package docker:build -DskipTests -Dimage.taggedName=$imageName

docker save ${imageName} -o ${tarName}

echo ${imageName}



